$(function () {
    filter();
})

function filter() {
    let data=myAjax("/user/username","","get");
    if (data==400){
        window.open("login.html");
    }else {
        $("#username").text(data.username);
    }
}

function Exit() {
    let data=myAjax("/Exit","","get");
    if (data==1) {
        window.open("login.html");
    }
}
